<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>语法与规则 Rules | 你好,欢迎来到MyNote</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    
    <link rel="prev" href="../../lesson/css/20170830.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="3.5"
        data-chapter-title="语法与规则 Rules"
        data-filepath="lesson/css/20170831.md"
        data-basepath="../.."
        data-revision="Thu Aug 31 2017 12:00:31 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="lesson/html/HTML.html">
            
                
                    <a href="../../lesson/html/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        一.HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="lesson/html/20170718.html">
            
                
                    <a href="../../lesson/html/20170718.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="lesson/html/0718-3.html">
            
                
                    <a href="../../lesson/html/0718-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="lesson/html/0718-2.html">
            
                
                    <a href="../../lesson/html/0718-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        注释标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="lesson/html/0718-1.html">
            
                
                    <a href="../../lesson/html/0718-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        块级和行内元素
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="lesson/html/20170719.html">
            
                
                    <a href="../../lesson/html/20170719.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="lesson/html/0719-3.html">
            
                
                    <a href="../../lesson/html/0719-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="lesson/html/0719-4.html">
            
                
                    <a href="../../lesson/html/0719-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="lesson/html/0719-1.html">
            
                
                    <a href="../../lesson/html/0719-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        audio音频标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="lesson/html/0719-2.html">
            
                
                    <a href="../../lesson/html/0719-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.4.</b>
                        
                        video音频标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="lesson/html/20170720.html">
            
                
                    <a href="../../lesson/html/20170720.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="lesson/html/input.html">
            
                
                    <a href="../../lesson/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        课后补充
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="lesson/html/0720-1.html">
            
                
                    <a href="../../lesson/html/0720-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        HTML表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="lesson/html/0720-2.html">
            
                
                    <a href="../../lesson/html/0720-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="lesson/html/20170721.html">
            
                
                    <a href="../../lesson/html/20170721.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="lesson/html/0721-5.html">
            
                
                    <a href="../../lesson/html/0721-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.1.</b>
                        
                        icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="lesson/html/0721-2.html">
            
                
                    <a href="../../lesson/html/0721-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.2.</b>
                        
                        自定义列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="lesson/html/0721-3.html">
            
                
                    <a href="../../lesson/html/0721-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.3.</b>
                        
                        iframe内嵌框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="lesson/html/0721-4.html">
            
                
                    <a href="../../lesson/html/0721-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.4.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="lesson/html/0721-1.html">
            
                
                    <a href="../../lesson/html/0721-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.5.</b>
                        
                        图片的热区hotmap
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="lesson/css/CSS.html">
            
                
                    <a href="../../lesson/css/CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        二.CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="lesson/css/20170724.html">
            
                
                    <a href="../../lesson/css/20170724.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="lesson/css/0724-1.html">
            
                
                    <a href="../../lesson/css/0724-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="lesson/css/0724-3.html">
            
                
                    <a href="../../lesson/css/0724-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        ID选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="lesson/css/0724-4.html">
            
                
                    <a href="../../lesson/css/0724-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="lesson/css/0724-5.html">
            
                
                    <a href="../../lesson/css/0724-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="lesson/css/扩展.html">
            
                
                    <a href="../../lesson/css/扩展.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="lesson/css/扩展2.html">
            
                
                    <a href="../../lesson/css/扩展2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="lesson/css/0724-2.html">
            
                
                    <a href="../../lesson/css/0724-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        class类选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="lesson/css/20170725.html">
            
                
                    <a href="../../lesson/css/20170725.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="lesson/css/0725-1.html">
            
                
                    <a href="../../lesson/css/0725-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="lesson/css/0725-2.html">
            
                
                    <a href="../../lesson/css/0725-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        文本描述
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="lesson/css/0725-3.html">
            
                
                    <a href="../../lesson/css/0725-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        文字阴影
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="lesson/css/0725-4.html">
            
                
                    <a href="../../lesson/css/0725-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        字体嵌入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="lesson/css/0725-5.html">
            
                
                    <a href="../../lesson/css/0725-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        CSS颜色
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="lesson/css/20170726.html">
            
                
                    <a href="../../lesson/css/20170726.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="lesson/css/0726-1.html">
            
                
                    <a href="../../lesson/css/0726-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        border边框
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="lesson/css/0726-2.html">
            
                
                    <a href="../../lesson/css/0726-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        background背景
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="lesson/css/20170727.html">
            
                
                    <a href="../../lesson/css/20170727.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="lesson/css/0727-2.html">
            
                
                    <a href="../../lesson/css/0727-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.1.</b>
                        
                        文字溢出
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="lesson/css/0727-3.html">
            
                
                    <a href="../../lesson/css/0727-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.2.</b>
                        
                        word-break
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="lesson/css/0727-1.html">
            
                
                    <a href="../../lesson/css/0727-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.3.</b>
                        
                        文字对齐方式
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="lesson/css/20170728.html">
            
                
                    <a href="../../lesson/css/20170728.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        第五节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="lesson/css/0728-1.html">
            
                
                    <a href="../../lesson/css/0728-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.1.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="lesson/css/0728-2.html">
            
                
                    <a href="../../lesson/css/0728-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.2.</b>
                        
                        z-index
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="lesson/css/20170731.html">
            
                
                    <a href="../../lesson/css/20170731.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        第六节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="lesson/css/20170801.html">
            
                
                    <a href="../../lesson/css/20170801.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        第七节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="lesson/css/0801-2.html">
            
                
                    <a href="../../lesson/css/0801-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.1.</b>
                        
                        git安装使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7.2" data-path="lesson/css/0801-1.html">
            
                
                    <a href="../../lesson/css/0801-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.2.</b>
                        
                        SASS安装使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="lesson/css/20170802.html">
            
                
                    <a href="../../lesson/css/20170802.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        第八节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.8.1" data-path="lesson/css/0802-1.html">
            
                
                    <a href="../../lesson/css/0802-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.1.</b>
                        
                        css3 过渡（transition）
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8.2" data-path="lesson/css/0802-2.html">
            
                
                    <a href="../../lesson/css/0802-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.2.</b>
                        
                        css3 变换（transform）
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="lesson/css/20170803.html">
            
                
                    <a href="../../lesson/css/20170803.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        第九节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="lesson/css/20170804.html">
            
                
                    <a href="../../lesson/css/20170804.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        第十节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="lesson/css/0804-1.html">
            
                
                    <a href="../../lesson/css/0804-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.1.</b>
                        
                        滤镜
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="lesson/media/media.html">
            
                
                    <a href="../../lesson/media/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        三.项目期间
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="lesson/css/20170807.html">
            
                
                    <a href="../../lesson/css/20170807.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        鲁班项目(第一天)
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="lesson/css/20170808.html">
            
                
                    <a href="../../lesson/css/20170808.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.1.</b>
                        
                        鲁班项目(第二天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="lesson/css/20170809.html">
            
                
                    <a href="../../lesson/css/20170809.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.2.</b>
                        
                        鲁班项目(第三天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="lesson/css/20170811.html">
            
                
                    <a href="../../lesson/css/20170811.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.3.</b>
                        
                        鲁班项目(第四天)
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="lesson/viewport/20170814.html">
            
                
                    <a href="../../lesson/viewport/20170814.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        viewport
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.2.1" data-path="lesson/viewport/20170814-1.html">
            
                
                    <a href="../../lesson/viewport/20170814-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.1.</b>
                        
                        viewport特性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="lesson/viewport/20170815.html">
            
                
                    <a href="../../lesson/viewport/20170815.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        移动端项目
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1" data-path="lesson/viewport/20170816.html">
            
                
                    <a href="../../lesson/viewport/20170816.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.</b>
                        
                        倒霉
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1.1" data-path="lesson/viewport/0816-1.html">
            
                
                    <a href="../../lesson/viewport/0816-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.1.</b>
                        
                        css长度单位
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3.2" data-path="lesson/mobile-project/20170817project.html">
            
                
                    <a href="../../lesson/mobile-project/20170817project.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.2.</b>
                        
                        mobile项目入手
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.3" data-path="lesson/mobile-project/20170818.html">
            
                
                    <a href="../../lesson/mobile-project/20170818.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.3.</b>
                        
                        记录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.4" data-path="lesson/viewport/20170821.html">
            
                
                    <a href="../../lesson/viewport/20170821.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.4.</b>
                        
                        项目中所遇的问题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.5" data-path="lesson/viewport/20170822.html">
            
                
                    <a href="../../lesson/viewport/20170822.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.5.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.6" data-path="lesson/viewport/20170823.html">
            
                
                    <a href="../../lesson/viewport/20170823.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.6.</b>
                        
                        上交测试版
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.7" data-path="lesson/viewport/20170824.html">
            
                
                    <a href="../../lesson/viewport/20170824.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.7.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="lesson/css/20170830.html">
            
                
                    <a href="../../lesson/css/20170830.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        接触框架
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="3.5" data-path="lesson/css/20170831.html">
            
                
                    <a href="../../lesson/css/20170831.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        语法与规则 Rules
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >你好,欢迎来到MyNote</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="&#x5185;&#x5BB9;&#xFF1A;&#x5F39;&#x6027;&#x76D2;&#x5B50;flexdisplay-flexflexgrow-0flexshrink-0alignitems-centerflexdirection-columnjustifycontent-flexstart">&#x5185;&#x5BB9;&#xFF1A;&#x5F39;&#x6027;&#x76D2;&#x5B50;flex,display: flex;flex-grow: 0;flex-shrink: 0;align-items: center;flex-direction: column;justify-content: flex-start;</h2>
<h2 id="&#x8BED;&#x6CD5;&#x4E0E;&#x89C4;&#x5219;-rules">&#x8BED;&#x6CD5;&#x4E0E;&#x89C4;&#x5219; Rules</h2>
<h3 id="important">!important</h3>
<pre><code>&#x8BF4;&#x660E;&#xFF1A;
&#x63D0;&#x5347;&#x6307;&#x5B9A;&#x6837;&#x5F0F;&#x89C4;&#x5219;&#x7684;&#x5E94;&#x7528;&#x4F18;&#x5148;&#x6743;&#x3002;
</code></pre><h3 id="import">@import</h3>
<pre><code>1. &#x53D6;&#x503C;&#xFF1A;
&lt;url&gt;&#xFF1A;&#x4F7F;&#x7528;&#x7EDD;&#x5BF9;&#x6216;&#x76F8;&#x5BF9;&#x5730;&#x5740;&#x6307;&#x5B9A;&#x5BFC;&#x5165;&#x7684;&#x5916;&#x90E8;&#x6837;&#x5F0F;&#x8868;&#x6587;&#x4EF6;&#x3002;&#x53EF;&#x4EE5;&#x662F;url(url)&#x6216;&#x8005;&#x76F4;&#x63A5;&#x662F;&#x4E00;&#x4E2A;url
&lt;media_query_list&gt;&#xFF1A;&#x6307;&#x5B9A;&#x5A92;&#x4F53;&#x7C7B;&#x578B;&#x548C;&#x67E5;&#x8BE2;&#x6761;&#x4EF6;&#x3002;

2. &#x8BF4;&#x660E;&#xFF1A;
&#x6307;&#x5B9A;&#x5BFC;&#x5165;&#x7684;&#x5916;&#x90E8;&#x6837;&#x5F0F;&#x8868;&#x53CA;&#x76EE;&#x6807;&#x5A92;&#x4F53;&#x3002;
&#x8BE5;&#x89C4;&#x5219;&#x5FC5;&#x987B;&#x5728;&#x6837;&#x5F0F;&#x8868;&#x5934;&#x90E8;&#x6700;&#x5148;&#x58F0;&#x660E;&#x3002;&#x5E76;&#x4E14;&#x5176;&#x540E;&#x7684;&#x5206;&#x53F7;&#x662F;&#x5FC5;&#x9700;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x7701;&#x7565;&#x4E86;&#x6B64;&#x5206;&#x53F7;&#xFF0C;&#x5916;&#x90E8;&#x6837;&#x5F0F;&#x8868;&#x5C06;&#x65E0;&#x6CD5;&#x6B63;&#x786E;&#x5BFC;&#x5165;&#xFF0C;&#x5E76;&#x4F1A;&#x751F;&#x6210;&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#x3002;
IE&#x4F7F;&#x7528;@import&#x65E0;&#x6CD5;&#x5F15;&#x5165;&#x8D85;&#x8FC7;35&#x6761;&#x7684;&#x6837;&#x5F0F;&#x8868;&#x3002;
</code></pre><h4 id="&#x793A;&#x4F8B;&#x4EE3;&#x7801;&#xFF1A;">&#x793A;&#x4F8B;&#x4EE3;&#x7801;&#xFF1A;</h4>
<ul>
<li><p>&#x4F7F;&#x7528;url(url)&#x548C;&#x76F4;&#x63A5;&#x4F7F;&#x7528;url&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x5730;&#x65B9;&#xFF1A;</p>
<pre><code class="lang-html">@import url(&quot;global.css&quot;);
@import url(global.css);
@import &quot;global.css&quot;;
&#x4EE5;&#x4E0A;3&#x79CD;&#x65B9;&#x5F0F;&#x90FD;&#x6709;&#x6548;&#x3002;&#x5F53;&#x4F7F;&#x7528;url(url)&#x7684;&#x65B9;&#x5F0F;&#x65F6;&#xFF0C;&#x5305;&#x4F4F;&#x8DEF;&#x5F84;&#x7684;&#x5F15;&#x53F7;&#x53EF;&#x6709;&#x53EF;&#x65E0;&#xFF1B;&#x5F53;&#x76F4;&#x63A5;&#x4F7F;&#x7528;url&#x65F6;&#xFF0C;&#x5305;&#x4F4F;&#x8DEF;&#x5F84;&#x7684;&#x5F15;&#x53F7;&#x5FC5;&#x987B;&#x4FDD;&#x7559;&#x3002;
</code></pre>
</li>
<li><p>&#x6307;&#x5B9A;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#xFF1A;</p>
<pre><code class="lang-html">@import url(example.css) screen and (min-width:800px);
@import url(example.css) screen and (width:800px),(color);
@import url(example.css) screen and (min-device-width:500px) and (max-device-width:1024px);
</code></pre>
<h3 id="charset">@charset</h3>
<ol>
<li>&#x53D6;&#x503C;&#xFF1A;
&lt;charset&gt;&#xFF1A;&#x5B57;&#x7B26;&#x7F16;&#x7801;&#x3002;&#x5982;&#xFF1A;@charset &quot;utf-8&quot;;</li>
<li>&#x8BF4;&#x660E;&#xFF1A;
&#x5728;&#x5916;&#x90E8;&#x6837;&#x5F0F;&#x8868;&#x6587;&#x4EF6;&#x5185;&#x4F7F;&#x7528;&#x3002;&#x6307;&#x5B9A;&#x8BE5;&#x6837;&#x5F0F;&#x8868;&#x4F7F;&#x7528;&#x7684;&#x5B57;&#x7B26;&#x7F16;&#x7801;&#x3002;
&#x8BE5;&#x89C4;&#x5219;&#x540E;&#x9762;&#x7684;&#x5206;&#x53F7;&#x662F;&#x5FC5;&#x9700;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x7701;&#x7565;&#x4E86;&#x6B64;&#x5206;&#x53F7;&#xFF0C;&#x4F1A;&#x751F;&#x6210;&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#x3002;<h3 id="media">@media</h3>
<pre><code class="lang-html">&#x8BED;&#x6CD5;&#xFF1A;
@media&#xFF1A;<span class="hljs-tag">&lt;<span class="hljs-title">media_query_list</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">media_query_list</span>&gt;</span>&#xFF1A;[<span class="hljs-tag">&lt;<span class="hljs-title">media_query</span>&gt;</span>[&apos;,&apos; <span class="hljs-tag">&lt;<span class="hljs-title">media_query</span>&gt;</span>]*]?
<span class="hljs-tag">&lt;<span class="hljs-title">media_query</span>&gt;</span>&#xFF1A;[only | not]? <span class="hljs-tag">&lt;<span class="hljs-title">media_type</span>&gt;</span> [and <span class="hljs-tag">&lt;<span class="hljs-title">expression</span>&gt;</span>]* | <span class="hljs-tag">&lt;<span class="hljs-title">expression</span>&gt;</span> [and <span class="hljs-tag">&lt;<span class="hljs-title">expression</span>&gt;</span>]*
<span class="hljs-tag">&lt;<span class="hljs-title">expression</span>&gt;</span>&#xFF1A;&apos;(&apos;<span class="hljs-tag">&lt;<span class="hljs-title">media_feature</span>&gt;</span>[:<span class="hljs-tag">&lt;<span class="hljs-title">value</span>&gt;</span>]?&apos;)&apos;
</code></pre>
</li>
<li>&#x53D6;&#x503C;&#xFF1A;
<media_type>&#xFF1A;&#x6307;&#x5B9A;&#x8BBE;&#x5907;&#x7C7B;&#x578B;&#x3002;&#x5A92;&#x4F53;&#x7C7B;&#x578B;&#x5305;&#x62EC;&#xFF1A;&#x53C2;&#x9605;&#x5A92;&#x4F53;&#x7C7B;&#x578B;&#x3002;(CSS2)
<expression>&#xFF1A;&#x6307;&#x5B9A;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#x4F7F;&#x7528;&#x7684;&#x5A92;&#x4F53;&#x7279;&#x6027;&#x3002;&#x8FD9;&#x7C7B;&#x4F3C;&#x4E8E;CSS&#x5C5E;&#x6027;&#xFF0C;&#x5982;&#xFF1A;max-width:960px&#x3002;(CSS3)</expression></media_type></li>
<li>&#x8BF4;&#x660E;&#xFF1A;
&#x6307;&#x5B9A;&#x6837;&#x5F0F;&#x8868;&#x89C4;&#x5219;&#x7528;&#x4E8E;&#x6307;&#x5B9A;&#x7684;&#x5A92;&#x4F53;&#x7C7B;&#x578B;&#x548C;&#x67E5;&#x8BE2;&#x6761;&#x4EF6;&#x3002;
IE8&#x53CA;&#x4EE5;&#x4E0B;&#x53EA;&#x80FD;&#x5B9E;&#x73B0;CSS2&#x4E2D;&#x7684;&#x90E8;&#x5206;&#xFF0C;&#x5373;&#x53EA;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x5A92;&#x4F53;&#x7C7B;&#x578B;&#x3002;
&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#x53EF;&#x4EE5;&#x88AB;&#x7528;&#x5728;CSS&#x4E2D;&#x7684;@media&#x548C;@import&#x89C4;&#x5219;&#x4E0A;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x88AB;&#x7528;&#x5728;HTML&#x548C;XML&#x4E2D;&#x3002;</li>
</ol>
</li>
</ul>
<pre><code class="lang-html">&#x793A;&#x4F8B;&#x4EE3;&#x7801;&#xFF1A;
@media screen and (width:800px){ &#x2026; }
@import url(example.css) screen and (width:800px);
<span class="hljs-tag">&lt;<span class="hljs-title">link</span> <span class="hljs-attribute">media</span>=<span class="hljs-value">&quot;screen and (width:800px)&quot;</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">&quot;stylesheet&quot;</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;example.css&quot;</span> /&gt;</span>
<span class="hljs-pi">&lt;?xml-stylesheet media=&quot;screen and (width:800px)&quot; rel=&quot;stylesheet&quot; href=&quot;example.css&quot; ?&gt;</span>

&#x5217;&#x4E3E;&#x51E0;&#x79CD;&#x4F7F;&#x7528;&#x65B9;&#x5F0F;&#xFF1A;
@media all and (width:1024px){
    body{color:#f00;}
}
@media all and (device-height:800px){ &#x2026; }
@media all and (orientation:landscape){ &#x2026; }
@media all and (device-aspect-ratio:16/10){ &#x2026; }
@media all and (min-color:1){ &#x2026; }
@media all and (monochrome:0){ &#x2026; }
@media all and (grid:0){ &#x2026; }
</code></pre>
<h3 id="keyframes">@keyframes</h3>
<pre><code class="lang-html">&#x8BED;&#x6CD5;&#xFF1A;
@keyframes <span class="hljs-tag">&lt;<span class="hljs-title">identifier</span>&gt;</span> { <span class="hljs-tag">&lt;<span class="hljs-title">keyframes-blocks</span>&gt;</span> }
<span class="hljs-tag">&lt;<span class="hljs-title">keyframes-blocks</span>&gt;</span>&#xFF1A;[ [ from | to | <span class="hljs-tag">&lt;<span class="hljs-title">percentage</span>&gt;</span> ]{ sRules } ] [ [ , from | to | <span class="hljs-tag">&lt;<span class="hljs-title">percentage</span>&gt;</span> ]{ sRules } ]*
</code></pre>
<pre><code>&#x53D6;&#x503C;&#xFF1A;
&lt;identifier&gt;&#xFF1A;identifier&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x52A8;&#x753B;&#x540D;&#x79F0;
&lt;keyframes-blocks&gt;&#xFF1A;&#x5B9A;&#x4E49;&#x52A8;&#x753B;&#x5728;&#x6BCF;&#x4E2A;&#x9636;&#x6BB5;&#x7684;&#x6837;&#x5F0F;&#xFF0C;&#x5373;&#x5E27;&#x52A8;&#x753B;&#x3002;
</code></pre><pre><code>&#x8BF4;&#x660E;&#xFF1A;
&#x6307;&#x5B9A;&#x52A8;&#x753B;&#x540D;&#x79F0;&#x548C;&#x52A8;&#x753B;&#x6548;&#x679C;&#x3002;
@keyframes&#x5B9A;&#x4E49;&#x7684;&#x52A8;&#x753B;&#x540D;&#x79F0;&#x7528;&#x6765;&#x88AB;animation-name&#x6240;&#x4F7F;&#x7528;&#x3002;
</code></pre><p><strong>&#x6587;&#x5B57;&#x8BF4;&#x660E;&#x8FD8;&#x67AF;&#x71E5;&#x4E86;&#xFF0C;&#x4E0A;&#x4EE3;&#x7801;&#x66F4;&#x6E05;&#x6670;</strong></p>
<pre><code>&#x5B9A;&#x4E49;&#x52A8;&#x753B;&#x65F6;&#xFF0C;&#x7B80;&#x5355;&#x7684;&#x52A8;&#x753B;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x5173;&#x952E;&#x5B57;from&#x548C;to&#xFF0C;&#x5373;&#x4ECE;&#x4E00;&#x79CD;&#x72B6;&#x6001;&#x8FC7;&#x6E21;&#x5230;&#x53E6;&#x4E00;&#x79CD;&#x72B6;&#x6001;&#xFF1A;
&#x793A;&#x4F8B;&#x4EE3;&#x7801;&#xFF1A;
@keyframes testanimations {
    from { opacity: 1; }
    to { opacity: 0; }
}

&#x5982;&#x679C;&#x590D;&#x6742;&#x7684;&#x52A8;&#x753B;&#xFF0C;&#x53EF;&#x4EE5;&#x6DF7;&#x5408;&lt;percentage&gt;&#x53BB;&#x8BBE;&#x7F6E;&#x67D0;&#x4E2A;&#x65F6;&#x95F4;&#x6BB5;&#x5185;&#x7684;&#x4EFB;&#x610F;&#x65F6;&#x95F4;&#x70B9;&#x7684;&#x6837;&#x5F0F;&#xFF1A;
&#x793A;&#x4F8B;&#x4EE3;&#x7801;&#xFF1A;
@keyframes testanimations {
    from { transform: translate(0, 0); }
    20% { transform: translate(20px, 20px); }
    40% { transform: translate(40px, 0); }
    60% { transform: translate(60px, 20); }
    80% { transform: translate(80px, 0); }
    to { transform: translate(100px, 20px); }
}

&#x5F53;&#x7136;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4E0D;&#x4F7F;&#x7528;&#x5173;&#x952E;&#x5B57;from&#x548C;to&#xFF0C;&#x800C;&#x90FD;&#x4F7F;&#x7528;&lt;percentage&gt;&#xFF1A;
&#x793A;&#x4F8B;&#x4EE3;&#x7801;&#xFF1A;
@keyframes testanimations{
    0% { transform: translate(0, 0); }
    20% { transform: translate(20px, 20px); }
    40% { transform: translate(40px, 0); }
    60% { transform: translate(60px, 20px); }
    80% { transform: translate(80px, 0); }
    100% { transform: translate(100px, 20px); }
}

&#x6CE8;&#x610F;&#xFF0C;&#x8FD9;&#x91CC;&#x7684;0%&#x4E0D;&#x80FD;&#x7B80;&#x5199;&#x6210;0&#xFF0C;0&#x662F;&#x975E;&#x6807;&#x51C6;&#x8BED;&#x6CD5;&#xFF08;&#x867D;&#x7136;&#x88AB;&#x67D0;&#x4E9B;&#x6D4F;&#x89C8;&#x5668;&#x6240;&#x652F;&#x6301;&#xFF09;&#x3002;
</code></pre><h3 id="fontface">@font-face</h3>
<pre><code>1. &#x53D6;&#x503C;&#xFF1A;
&lt;identifier&gt;&#xFF1A;&#x5B57;&#x4F53;&#x540D;&#x79F0;
&lt;url&gt;&#xFF1A;&#x6B64;&#x503C;&#x6307;&#x7684;&#x662F;&#x4F60;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x5B57;&#x4F53;&#x7684;&#x5B58;&#x653E;&#x8DEF;&#x5F84;&#xFF0C;&#x53EF;&#x4EE5;&#x662F;&#x76F8;&#x5BF9;&#x8DEF;&#x5F84;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x7EDD;&#x8DEF;&#x5F84;
&lt;string&gt;&#xFF1A;&#x6B64;&#x503C;&#x6307;&#x7684;&#x662F;&#x4F60;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x5B57;&#x4F53;&#x7684;&#x683C;&#x5F0F;&#xFF0C;&#x4E3B;&#x8981;&#x7528;&#x6765;&#x5E2E;&#x52A9;&#x6D4F;&#x89C8;&#x5668;&#x8BC6;&#x522B;&#xFF0C;&#x5176;&#x503C;&#x4E3B;&#x8981;&#x6709;&#x4EE5;&#x4E0B;&#x51E0;&#x79CD;&#x7C7B;&#x578B;&#xFF1A;truetype, opentype, embedded-opentype, svg&#x7B49;
&lt;font&gt;&#xFF1A;&#x5B9A;&#x4E49;&#x5B57;&#x4F53;&#x76F8;&#x5173;&#x6837;&#x5F0F;

2. &#x8BED;&#x6CD5;&#xFF1A;
@font-face { font-family: &lt;identifier&gt;; src: &lt;fontsrc&gt; [, &lt;fontsrc&gt;]*; &lt;font&gt;; }
&lt;fontsrc&gt; = &lt;url&gt; [format(&lt;string&gt;)]

3. &#x8BF4;&#x660E;&#xFF1A;
&#x8BBE;&#x7F6E;&#x5D4C;&#x5165;HTML&#x6587;&#x6863;&#x7684;&#x5B57;&#x4F53;&#x3002;
&#x9700;&#x8981;&#x517C;&#x5BB9;&#x5F53;&#x524D;&#x7684;&#x4E3B;&#x6D41;&#x6D4F;&#x89C8;&#x5668;&#xFF0C;&#x9700;&#x540C;&#x65F6;&#x4F7F;&#x7528;TureTpe(.ttf)&#x3001;Web Open Font Format(.woff)&#x3001;Embedded Open Type(.eot)&#x3001;SVG(.svg)&#x56DB;&#x79CD;&#x5B57;&#x4F53;&#x683C;&#x5F0F;&#x3002;
&#x5D4C;&#x5165;HTML&#x6587;&#x6863;&#x7684;&#x5B57;&#x4F53;&#x662F;&#x6307;&#x5C06;OpenType&#x5B57;&#x4F53;&#xFF08;&#x538B;&#x7F29;&#x7684;TrueType&#x5B57;&#x4F53;&#xFF09;&#x6587;&#x4EF6;&#x6620;&#x5C04;&#x5230;&#x5BA2;&#x6237;&#x7AEF;&#x7CFB;&#x7EDF;&#xFF0C;&#x7528;&#x6765;&#x63D0;&#x4F9B;HTML&#x6587;&#x6863;&#x4F7F;&#x7528;&#x8BE5;&#x5B57;&#x4F53;&#xFF0C;&#x6216;&#x53D6;&#x4EE3;&#x5BA2;&#x6237;&#x7AEF;&#x7CFB;&#x7EDF;&#x5DF2;&#x6709;&#x7684;&#x540C;&#x540D;&#x5B57;&#x4F53;&#x3002;&#x5373;&#x8BA9;&#x5BA2;&#x6237;&#x7AEF;&#x663E;&#x793A;&#x5BA2;&#x6237;&#x7AEF;&#x6240;&#x6CA1;&#x6709;&#x5B89;&#x88C5;&#x7684;&#x5B57;&#x4F53;&#x3002;
.eot(Embedded Open Type)&#x4E3A;IE&#x7684;&#x79C1;&#x6709;&#x5B57;&#x4F53;&#x683C;&#x5F0F;&#x3002;Safari3.1&#x5F00;&#x59CB;&#x652F;&#x6301;.ttf(TrueType)&#x548C;.otf(OpenType)&#x3002;
&#x672A;&#x6765;.woff(Web Open Font Format)&#x5C06;&#x4F1A;&#x53D6;&#x4EE3;.ttf(TrueType)&#x548C;.otf(OpenType)&#x4E24;&#x79CD;&#x5B57;&#x4F53;&#x683C;&#x5F0F;&#x3002;
</code></pre><pre><code class="lang-html">&#x4E0A;&#x4EE3;&#x7801;&#x8BA9;&#x4F60;&#x66F4;&#x6E05;&#x6670;
&#x793A;&#x4F8B;&#xFF1A;&#x4F7F;&#x7528;&#x4E00;&#x4E2A;&#x5168;&#x6D4F;&#x89C8;&#x5668;&#x517C;&#x5BB9;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x5B57;&#x4F53;
&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;
@font-face {
    font-family: &apos;diyfont&apos;;
    src: url(&apos;diyfont.eot&apos;); /* IE9+ */
    src: url(&apos;diyfont.eot?#iefix&apos;) format(&apos;embedded-opentype&apos;), /* IE6-IE8 */
         url(&apos;diyfont.woff&apos;) format(&apos;woff&apos;), /* chrome&#x3001;firefox */
         url(&apos;diyfont.ttf&apos;) format(&apos;truetype&apos;), /* chrome&#x3001;firefox&#x3001;opera&#x3001;Safari, Android, iOS 4.2+*/
         url(&apos;diyfont.svg#fontname&apos;) format(&apos;svg&apos;); /* iOS 4.1- */
}
</code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../lesson/css/20170830.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 接触框架"><i class="fa fa-angle-left"></i></a>
        
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
